import pinia from "@/store";
import useUserStore from "@/store/modules/user";
const rolebuttons = useUserStore(pinia);

export default (app: any) => {
  app.directive("aclRole", (el: any, binding: any) => {
    el.style.display = rolebuttons.rolebuttons.includes(binding.value.btn)
      ? "none"
      : "block";
  });
};
